# Maintainer: Andy Postnikov <apostnikov@gmail.com>
pkgname=py3-tenacity
_pkgname=tenacity
pkgver=8.0.0
pkgrel=1
pkgdesc="general-purpose retrying library"
url="https://tenacity.readthedocs.io/"
arch="noarch"
license="Apache-2"
depends="py3-tomli"
makedepends="py3-setuptools py3-pytest py3-setuptools_scm"
checkdepends="py3-tornado py3-typeguard"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

build() {
	python3 setup.py build
}

check() {
	pytest -v
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
f9c8b74d53dc4973e833a2d2625d15b7f40b813b1cfe389511c1083e738d62b0793dbfab73ed13a9e88cc65a17d2c6d8b0a571f13732a26f4c957e16dd9bbefc  tenacity-8.0.0.tar.gz
"
